import request from "../utils/request";

// 公共-->文件上传
export const uploadFile = (params) => {
  let url = "/api/upload/store";
  return request.post(url, params);
};

// 公共-->获取广告位
export const getAdvertising = (params) => {
  let url = "/api/v1/banner/list";
  return request.get(url, { params });
};

// 公共-->通过广告位获取轮播图
export const getBanner = (params) => {
  let url = "/api/v1/banner/bypos";
  return request.get(url, { params });
};
